package com.diandi.java.ai.langchain4j.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

/**
 * @Classname XiaozanAgent
 * @Description TODO
 * @Date 2025/4/25 00:41
 * @Created by shizan
 */
@AiService(
        wiringMode = EXPLICIT,
//        chatModel = "qwenChatModel",
        streamingChatModel = "qwenStreamingChatModel",
        chatMemoryProvider = "chatMemoryProviderXiaozan",
        tools = "appointmentTools", //tools配置,
         contentRetriever = "contentRetrieverXiaozanPincone" //配置向量存储
)
public interface XiaozanAgent {

    @SystemMessage(fromResource = "xiaozan-prompt-template.txt")
    Flux<String> chat(@MemoryId Long memoryId, @UserMessage String userMessage);
}
